<%@page import="org.quickbundle.tools.helper.RmVoHelper" %>
<%@page import="org.quickbundle.tools.helper.RmStringHelper" %>
<%@ page contentType="text/html; charset=UTF-8" language="java"%>

<!DOCTYPE html>
<html lang="en">
	<head>
	
	   <!-- 全局js 和css包 -->
	   <%@ include file="/jsp/include/web/jqGrid/global.jsp" %>
		<meta charset="utf-8" />
		<title><bean:message key="qb.web_title"/></title>

		<meta name="description" content="Dynamic tables and grids using jqGrid plugin" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	</head>
	
<style type="text/css">
		.show{ display: block !important;}
		
		.content-div{width: 100%;height:100%;}
		.tan_close_div {text-align: right;min-height:10px;}
		.tan_close_div a{ float: right;font-size: 18px;color: #ccc;}
		
		
		
		.frame_div iframe{width: 100%;height: 100%;border:1px solid #ccc;min-height: 380px; }
		
		/*弹出层确认按钮*/
		.tan_btn_div{width: 100%;min-height: 40px;text-align: center;line-height:40px;}
		.tan_btn_div a:first-child{margin-right:15px;}
		.tan_btn_div a{padding:5px 10px;color:#fff;background-color:#36A7C4; }
		.tan_btn_div a:focus,.tan_btn_div a:active,.tan_btn_div a:hover{color:#fff; background-color: #0d638f;text-decoration: none;}

	</style>

	<body>
	
	<div class="content-div"  style="background-color: #FFF">
	   <form method="post" name="form" enctype="application/x-www-form-urlencoded">
	  <!-- 加载iframe -->
	  <div class="frame_div" id="frame_div">
	  
	   <iframe  name="task_frame" id="task_frame" src="${pageContext.request.contextPath}${formUrl}">
	   
	
	   
	   </iframe>
	  
	  </div>
      <!-- end 加载iframe -->
       <div class="col-xs-12" style="background-color: #FFF">
        <div style="line-height:30px;margin-top:20px;">审核意见：</div>
        <div style="border:1px solid #333;height: 100px;">
          <textarea name="auditOpinion" style="width: 100%;resize:none;border:none;height: 100%;line-height:1.5;"></textarea>
        </div>
   		 <div class="tan_btn_div">
	   		 <a href="javascript:void(0);" class="assignee_ok" onclick="taskNextStep('${taskId}',form,'isPass=1');"> 审核通过</a>
	   		 <a href="javascript:void(0);" class="assignee_cancel" onclick="taskNextStep('${taskId}',form,'isPass=1');"> 审核驳回</a>
		 </div>	
	  </div>
	  
 	</form>
  </div>
<script type="text/javascript">

//注意：下面的代码是放在和iframe同一个页面中调用
$("#task_frame").load(function () {
    var mainheight = $(this).contents().find("body").height();
    $(this).height(mainheight);
});
//任务下一步
function taskNextStep(taskId,formObj,params){
	formObj.action = "${pageContext.request.contextPath}/frontflowdef/complete/"+taskId+"?"+params;
	formObj.submit();
}
</script>
	</body>
	
</html>
